Feature: Admin Auth
  In order not to do things I should not do,
  As an admin,
  I want to have permissions to precisely what I can do.

  Scenario: Create role
    Given I have permission to "create role"
    When I sign in
    Then I should see "Create role" link
    When I click "Create role" link
    Then I should be able to choose multiple permissions
    When I fill the name with "Mail Designer"
    And I check "Create mail", "Create tester", "Deliver test mail"
    And I submit the form
    Then a new role should be created.

  Scenario: Denying creation of role
    Given I don't have permission to "create role"
    When I sign in
    Then I should not see "Create role" link
    And I should be denied to visit "/roles/new"

